<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style>
			div{
				width: 10px;
				height:10px;
				background: red;
				position: absolute;
			}
		</style>
		<script type="text/javascript">
			window.onload=function(){
				var aDiv=document.getElementsByTagName('div');
				document.onmousemove=function(ev){
					var ev=ev||window.event;
					var i=0;
					var timer=setInterval(function(){
						aDiv[i].style.left=ev.clientX+'px';
						aDiv[i].style.top=ev.clientY+'px';
						i++;
						if(i>=aDiv.length){
							clearInterval(timer);
						}
					},100);
				}
			}
		</script>
	</head>
	<body>
		<div></div>
		<div></div>
		<div></div>
		<div></div>
		<div></div>
		<div></div>
		<div></div>
		<div></div>
		<div></div>
		<div></div>
	</body>
</html>
